<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<%@include file="/common/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title> </title>
<script type="text/javascript" src="js/jquery.js"></script>

<script type="text/javascript" src="js/cal.js"></script>
<link href="css/body.css" rel="stylesheet" type="text/css">

<link href="css/calendar.css" rel="stylesheet" type="text/css">
</head>

<body>

<logic:notEmpty name="gpstxSuccess" scope="request">
GPS提醒已经发送成功！
</logic:notEmpty>
<logic:empty name="gpstxSuccess" scope="request">
<html:form action="writeReceipt" method="post">
<html:hidden property="callMethod"  styleId="callMethod" value="updategpstx"/>
<html:hidden    property="tableID" styleId="tableID"/>
		<div>要求完成日期：<html:text property="gpstx" readonly="readonly"  style="width:100px;"  styleId="gpstx" /><input type="button" onclick="updategpstx();" value="发送"/></div>



</html:form>
</logic:empty>

<script >
function updategpstx(){
	
	if($.trim($('#gpstx').val())==""){
		alert('完成日期不能为空！');
		return ;
	}
	$("form:first").submit(); 
}
$(document).ready(function(){
	$('#gpstx').simpleDatepicker({startdate:2011 , enddate:2015 , x:0, y:0 });
	<logic:notEmpty name="gpstxSuccess" scope="request">
		parent.refresh();
	</logic:notEmpty>
	
});
</script>
</body>
</html>